package com.resourcestore.dao;

import java.util.List;

import com.resourcestore.dao.BaseDao;
import com.resourcestore.model.MajorGroup;
import com.resourcestore.model.Operations;
import com.resourcestore.utils.tag.Pagination;

public class OperationsDao extends BaseDao {

	public List<Operations> selectOperations(){
		List<Operations> list=this.queryForList("selectOperations");
		return list;
	}
	
	public List<Operations> selectOperationsPage(Operations operations,Pagination pagination){
		List<Operations> list = this.queryForPage("selectOperationsPage", operations,pagination);
		return list;
	}
	
	public int queryOperationsNum(Operations operations) {
		return this.queryNum("selectOperationsCount", operations);
	}
	
	public Operations selectOperationsById(Operations operations){
		return (Operations)this.queryForObject("selectOperationsById", operations);
	}
	
	public void insertOperations(Operations operations){
		this.insert("insertOperations", operations);		
	}
	
	public void updateOperations(Operations operations){
		this.update("updateOperations", operations);	
	}
	
	public void deleteOperations(Operations operations){
		this.delete("deleteOperations", operations);
	}
	
	public void deleteMoreOperations(Operations operations){
		this.delete("deleteMoreOperations", operations);
	}
}
